#! /bin/bash
export PATH=/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin

BIN_DIR=/dianyi/app/walle/fbagent-services/bin
TAR_FILE=/dianyi/conf/RocketMQ/SSL/client.ks

# need those ENV when running this image
#  NEED_REMAIN_SSL_FILE	
if [[ "$NEED_REMAIN_SSL_FILE"x != "1"x ]]; then
   rm -f /dianyi/conf/RocketMQ/SSL/client.ks 
fi
mkdir -p /dianyi/data
# start services and as a daemon
cd ${BIN_DIR} && ./start.sh
/usr/sbin/sshd -D
